/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.polimi.se2.meteocal.xml;

/**
 *
 * @author Ugo
 */
import it.polimi.se2.meteocal.entity.Event;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
 
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "events")
public class Events {
 
    @XmlElement(name = "event", type = Event.class)
    private List<Event> events = new ArrayList<Event>();
     
    public Events() {}
 
    public Events(List<Event> events) {
        this.events = events;
    }
 
    public List<Event> getEvents() {
        return events;
    }
 
    public void setEvents(List<Event> events) {
        this.events = events;
    }  
}
